﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace UI
{
    public partial class Index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string Host = HttpContext.Current.Request.Url.Host;
            string m = JobRequest.GetRequestString("m");
            string n = JobRequest.GetRequestString("n");
            string b = JobRequest.GetRequestString("b");
            if (Host == "z.qiyedaishu.com")
            {
                if (m != "")
                {
                    Response.Redirect("http://zhoukouzhifa.qiyedaishu.com:12580/ParkChuFa.aspx?SmsNum=" + m);
                }
                if (n != "")
                {
                    Response.Redirect("http://zhoukouzhifa.qiyedaishu.com:12580/ParkCuiGao.aspx?SmsNum=" + n);
                }
                if (b != "")
                {
                    Response.Redirect("http://zhoukouzhifa.qiyedaishu.com:12580/EBill.aspx?Bill=" + b);
                }
            }
            if (Host == "x.qiyedaishu.com")
            {
                if (m != "")
                {
                    Response.Redirect("http://xipingzhifa.qiyedaishu.com/ParkChuFa.aspx?SmsNum=" + m);
                }
                if (b != "")
                {
                    Response.Redirect("http://xipingzhifa.qiyedaishu.com/EBill.aspx?Bill=" + b);
                }
            }
            if (Host == "s.qiyedaishu.com")
            {
                if (m != "")
                {
                    Response.Redirect("http://test.shangqiuzhifa.qiyedaishu.com/ParkChuFa.aspx?SmsNum=" + m);
                }
                if (b != "")
                {
                    Response.Redirect("http://test.shangqiuzhifa.qiyedaishu.com/EBill.aspx?Bill=" + b);
                }
            }
        }
    }
}